#ifndef __EGP_H_
#define __EGP_H_

#include <sys/types.h>

#define MAX_PKTSIZE 8192

struct egp_h {
   u_int8_t version;
   u_int8_t type;
   u_int8_t code;
   u_int8_t status;
   u_int16_t checksum;
   u_int16_t asnumber;
   u_int16_t seq;
};

struct egp_nam {
   struct egp_h hdr;
   u_int16_t hello;
   u_int16_t poll;
};

struct egp_poll {
   struct egp_h hdr;
   u_int16_t reserved;
   u_int32_t srcnet;
};

struct egp_update {
   struct egp_h hdr;
   u_int8_t int

#endif 
